<div class="main" id="problem_show">
    <h1 class="title">Submission</h1>
    <div id="submission_view">
        <table class="columnar2">
            <tr>
                <td class="name" style="width:50px">Problem</td>
                <td class="value"><?=html::anchor(url::site('problems/view/'.$submission->problem->token), $submission->problem->get_property('title'))?></td>
            </tr>
            <tr>
                <td class="name">Result</td>
                <td class="value"><?=$submission->get_grade_content('verdict')?></td>
            </tr>
            <tr>
                <td class="name">Time</td>
                <td class="value"><?=$submission->submit_time?></td>
            </tr>
            <?
            $point = $submission->get_grade_content('point');
            $total = $submission->get_grade_content('total');
            ?>
            <?if (isset($point) && !is_null($point)) :?>
            <tr>
                <td class="name">Score</td>
                <td class="value"><?=$point?> / <?=$total?></td>
            </tr>
            <?endif;?>
        </table>

        <?ProblemController::show_submission($submission)?>
    </div>
    <div class="links" style="clear:both">
        <ul>
            <li><a href="javascript:history.go(-1)">Back</a></li>
        </ul>
    </div>
</div>